package com.slz3.business.module.socialManagement.socShow.steward;

import com.slz3.business.module.socialManagement.socShow.domain.SocShow;
import com.slz3.business.module.socialManagement.socShow.domain.SocShowCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class SocShowResponse {

    public static Mono<ServerResponse> add(ServerRequest req) {
        return req.bodyToMono(SocShow.class).flatMap(socShow ->
                SocShowResController.add(req, socShow)
        );
    }

    public static Mono<ServerResponse> delete(ServerRequest req) {
        return req.bodyToMono(SocShowCondition.class).flatMap(socShowCondition ->
                SocShowResController.delete(req, socShowCondition)
        );
    }

    public static Mono<ServerResponse> modify(ServerRequest req) {
        return req.bodyToMono(SocShow.class).flatMap(socShow ->
                SocShowResController.modify(req, socShow)
        );
    }


    public static Mono<ServerResponse> list(ServerRequest req) {
        return SocShowResController.list(req);
    }

    public static Mono<ServerResponse> info(ServerRequest req) {
        return SocShowResController.info(req);
    }

    public static Mono<ServerResponse> choice(ServerRequest req) {
        return SocShowResController.choice(req);
    }

    public static Mono<ServerResponse> auditSubmit(ServerRequest req) {
        return req.bodyToMono(SocShowCondition.class).flatMap(socShowCondition ->
                SocShowResController.auditSubmit(req, socShowCondition)
        );
    }

    public static Mono<ServerResponse> audit(ServerRequest req) {
        return req.bodyToMono(SocShowCondition.class).flatMap(socShowCondition ->
                SocShowResController.audit(req, socShowCondition)
        );
    }

    public static Mono<ServerResponse> auditReject(ServerRequest req) {
        return req.bodyToMono(SocShowCondition.class).flatMap(socShowCondition ->
                SocShowResController.auditReject(req, socShowCondition)
        );
    }

    public static Mono<ServerResponse> usingEnable(ServerRequest req) {
        return req.bodyToMono(SocShowCondition.class).flatMap(socShowCondition ->
                SocShowResController.usingEnable(req, socShowCondition)
        );
    }

    public static Mono<ServerResponse> usingDisable(ServerRequest req) {
        return req.bodyToMono(SocShowCondition.class).flatMap(socShowCondition ->
                SocShowResController.usingDisable(req, socShowCondition)
        );
    }   

}
